home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / initramfs-tools / hooks / cryptkeyctl < prev    next >
Encoding:
Text File  |  2011-03-11  |  452 b   |  33 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. PREREQ="cryptroot"
  6.  
  7. prereqs()
  8. {
  9.     echo "$PREREQ"
  10. }
  11.  
  12. case $1 in
  13. prereqs)
  14.     prereqs
  15.     exit 0
  16.     ;;
  17. esac
  18.  
  19. . /usr/share/initramfs-tools/hook-functions
  20.  
  21. # Hooks for loading keyctl software into the initramfs
  22.  
  23. # Check whether cryptroot hook has installed decrypt_keyctl script 
  24. if [ ! -x ${DESTDIR}/lib/cryptsetup/scripts/decrypt_keyctl ]; then
  25.     exit 0
  26. fi
  27.  
  28. # Install binaries into initramfs
  29. copy_exec /bin/keyctl
  30. copy_exec /bin/stty
  31.  
  32. exit 0
  33.